<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
    <li class="active"><a href="{:U('Brand/index')}"> 品牌列表 </a></li>
    <li ><a href="{:U('Brand/add')}"> 添加品牌 </a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Brand/index')}">
        名称:
        <input type="text" name="name" style="width: 100px;" value="{:I('request.name/s','')}" placeholder="请输入品牌名称">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:U('Brand/index')}">清空</a>
    </form>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th> 品牌名称 </th>
            <th> LOGO </th>
            <th> 描述 </th>
            <th> 创建时间 </th>
            <th width="200">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo['title']}</td>
                <td><img style="height: 40px;" src="{$vo['logo']}" alt=""> </td>
                <td>
                    {$vo['desc']}
                </td>
                <td>{$vo.create_time}</td>
                <td>
                        <a href="{:U('Brand/edit',array('id'=>$vo['id']))}">编辑</a> |
                        <a href="{:U('Brand/delete',array('id'=>$vo['id']))}">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>